const express = require("express");
const app = express();

app.use((req, res, next) => {
  console.log("this is the first global middleware");
  next();
});

app.use((req, res, next) => {
  console.log("this is the second global middleware");
  next();
});

app.get("/users", (req, res) => {
  res.send("this is the userspage ");
});

app.get("/login", (req, res) => {
  res.send("this is the login page");
});

app.listen(80, () => {
  console.log("server is running at http://localhost:80");
});
